That's because garry replaced the type function in Lua to return VMatrix/Vector/Entity/Whatever instead of 'userdata', which is what would happen in regular Lua.

I'd like to model SF after regular Lua, instead of GLua (which is, to put it bluntly, terrible).