Adding lots of special flag handling to ArenaMapUnit.