Fixed weird crash and wrong type of asItem in food trait.

Update OP and change-log.