HOPKINS: Remove g_PTRNUL
HOPKINS: Remove useless casts, fix 2 crashes
HOPKINS: Misc cleanup