Replace gson with json-io for object reference serialisation.