Fix conversions in RGB plugin (and by extension, the Colour plugin)