Reorganize item handling(added non-integer stack support, another of our
cool features!)