Reading tables from lua state, bug fix: type is a reserved keyword