Add bounds checking to lookup tables in ffi-parse.lua