Improve ItemType vector code

ItemType objects are now stored directly in the vector, so we no longer
need to dereference them in getItemType(), this also saves 8 bytes on
64-bit systems (4 on 32-bit systems) per ItemType.
Update max unique id for quests.lua

From pull request #230