Small arithmetic fixes
Generalize types permitted for imedge
Generalize inputs to ScaleSigned and fix auto constructor
Make more robust against invalid metadata
Fix #17

Don't strip the metadata just yet...