operate correctly if __index is a table

strict.lua does not appear to function in openresty, presumably as the _G metatable __index is defined in C. NB: checking the type of old_index inside the __index function results in a stack overflow.