Convenience util to project this lua object into a map entry keyed by its own id.
MapEntry<String, LuaObject> get asMapEntry => MapEntry<String, LuaObject>(id, this);