REPL crashes with custom pretty printing and Dictionaries

It’s not clear to me what you are trying to achieve with what appears to be an unusual convert method. I think you would need to explain this reason, in addition to the odd behaviour.