add JsonGenerator.writeObjectRef() as well