Fixed PHINode instrumentation problem - if the phinode requires a cast to be sent to our framework, the cast must be after all phinodes