Trivial patch to fix codegen for int-to-pointer cast

Someone typed "PtrToInt" where they meant "IntToPtr".

I've added a tests/CodeGen directory, and a test for this case that
used to fail and now passes.

-Keith

IntToPointer.diff (1.27 KB)