Display the name of the constructor when pretty printing objects

Fixes #598 [finishes #81228592]