Fixed items being eaten on output.
Fixed output module not checking metadata, and merging improper stacks.
Fixed using switch on strings. (Damnit java...)