Fix GC losing objects on OSX64 due to registers not getting pushed as roots.
Fix several 64bit pointers being truncated to 32bit integers.