Upgradeable machines no longer delete items from upgrade slot without checking remaining stack size. Fixes #69