Stackable items fix

Fixes #541
Only items with the same attributes may stack together.