Teach Lua about ItemType:getSlotPosition()

Note: in my commit (b24a678) there's a commit hash I accidentally wrote, it's supposed to be 9bd87cd