ugtrain: print a headline per dynmem class

We could use the information at which memory address the
currently printed memory object starts and how many
objects we currently cheat in that class.

As a side effect we get better visual separation between
dynamic memory classes.