I love irony. One is that although a maglite can be considered a deadly weapon, while a surefire 6P isn't a weapon at all, because surefire advertises their products as having a "stun" capability, or some such, it's possible that it could be considered a weapon by a LEO while a maglite may not be. Funny.
Anyway, pointing a laser at a cop, obviously, is a bad idea. Same with a flashlight. Interfering with a police officer is a crime pretty much everywhere. Expect a problem.
Likewise, pointing a flashlight at someone driving a car at night is probably a crime pretty much everywhere, and it's equally a dim (pardon the pun) thing to do. While a motorist has the obligation to yield the right of way to a pedestrian, more or less, nobody has the right to endanger a motorist by blinding him. As a pedestrian, you just need to get out of the way and deal with any anger in a more productive way.
Ok, finally, taking a walk at night is a normal thing to do. If you're bothering people or scaring the neighbors, expect to have someone ask you what you're doing. If you're walking in a bad neighborhood, you also might be advised that being in said neighborhood isn't a smart thing to do, irrespective of legality. I'm not the biggest fan of law enforcement, but a "hassle" usually starts by the assumption that the LEO approaching you is there to hassle you. Almost all the time, he just wants to know what you're doing. Just be pleasent, and answer the questions. This is absolutely the worst time to argue about anything, let alone your civil rights. That's for the court system, not the enforcement systems.
So take a walk.