Json serialization works on objects with circular reference with Jackson