NEW_GEN: Fixed handling of function return variable by not freeing object and returning the full array variable.