Stackable items now retain their preferred ID.

Stackable items now retain their preferred ID.
Also fixed the code that I previously broke in Test.java.