avoid Python string creation in lua_type() function and return constants instead