Better support in pretty printer when an object has null prototype

- Fixes #500