adding normalizeTrialVariables method

method takes an object (intended to be a trial data structure) and converts any function arguments to their returned value.