Restructure flagsmap table in gumbo/ffi.lua to allow numeric iteration