Fix some warning in the autogenerated code
Fix the Get*Component returning a bad pointer