code: public void serializePrimitive(S rec, String fieldName, double value) {
          serializePrimitive(rec, fieldName, Double.valueOf(value));
      }
docs: Can be overridden to avoid boxing a double where appropriate