Various fixes to jsonpp

Various fixes based on real-world use in warshck