Fix for a few small bugs where deconstructing items would not give the correct amount of materials back.