Add capability to read table flag fields from Lua API
Merge commit '2a01050' into merge2