Add some additional ABI call funcs, cleanup.

ImmPtr is cleaner, let's use it rather than ugly casts.
Clean up a few more ImmPtr() cases.