change fieldType from string to int/int array json repr in AbstractScalarScriptFactory