name mangler: Refactor name mangling into an own (tiny) class

And add some more unit tests for that.