Teach Lua about ItemType:getSlotPosition()

Note: in my commit (b24a678) there's a commit hash I accidentally wrote, it's supposed to be 9bd87cd

P.S.: Github sucks bullcrap with pull requests, next time will be patches