Config Jackson to serialise with refs and deserialise back to pojos