Fix segfault with 'set print object on' + 'whatis <struct>' & co