Allow creature id in Lua metatable functions

This fixes issue #31