Changes so far:
1. In response to Cloral's Suggestion in ZC Suggestions, I've renamed the 'all-purpose' flag to the 'lens marker' flag. I checked through the code and he was right; it serves absolutely no other purpose other than to mark things for the lens.
2. I tweaked the lens so that it now shows bombable walls in dungeons with a 'bombed wall' state instead of the white square it was showing before.