For Component, Resource and UIElement always return concrete object type to Lua.