constants: Two fixes and support for reading globals in table loader