- Add basic serialization for quantities and dimensions