added to/from_json for Colour and ColourMatrix