Minor changes
Reorganize dumping code to use more right algorithm for dumping in pretty mode
Reorganize dump code for pretty dumping. Round 2.
Reorganize pretty dumping of dictionaries
Another fix of pretty dumping + new tests