Change return type of getField from reference to value.

Return value from getField rather than reference to allow future type conversion code.