remove resetAllVariables (merge to resetToDefaultValue) and optimize the latter in ParamArray and ParamMatrix