itemprop: Fix types, old functions names and constants.
item.env: Fix incorrect function name, add DamageImmunity
item: Add error if no item is created.

- Change item generator env __index metamethod to a table.chain