Fix issue #298
Lua changes

Added item:getType() & monster:getType()
Optimized table creation for some functions.
Merge pull request #306 from dalkon/master

Lua changes