Fix incorrect type display on nil pointers.

This was reported by korschak as issue #4 who also pinpointed the issue
and provided a patch.