[Lua] Add mechanism to read any flag from records
Only some flags are being exposed for records. For example, isCarriable
is exposed as a property for the light record, but there are many other which are inaccessible.
This doesn't apply to lights, but all records. All flags needs to be readable, they all can be useful. I think trying to map each flag to a more understandable property is a mistake, I propose to just expose the flag enums in some way and let modders use what they want.
I don't see how abstracting these flags will scale well at all once records from later games come into play.