1. fixed blocker : imageType serialization
2. added type se/deserialization test to avoid such unpleasant surprises in future
3. handle both left/right operand if quantity unit is 'unknown'