Moved ToJSON/FromJSON typclasses into Serialize module