Added two test revealing problems with generation of the record pattern when the actual value is union typed
Value typed expressions that are checked for their type do not need cloning
Fix for generation of the record pattern when the actual value is union typed