on dealloc, log "this" with %p, not %x.

Also adds %p where it was missing.
And make a few fixes on the iOS project
Merge pull request #2778 from ricardoquesada/dealloc_log_fixed

on dealloc, log "this" with %p, not %x.