fix argument type for getScalarType mark getFieldName as const Argument checking for Field construction