make Entity a struct -- needed to have separate type(...) in Lua for merge-loading