several serialization improvements
fixed performance issues introduced in 0.11.5.0 and some more that I found while profiling fixes #363