Name and number mapflags better
Make mapflags bitmask instead of bitfield
Add mapflag for outside