Revert "histogram for any data type". This was not a very useful idea. It makes more sense
to treat categories as their own data type.

This reverts commit 21436f080131276b51998e827960ebed6977d7a5.
schema is now versioned. fixed some tests.
0.5.0
replace default prefix $ with #, make flat:true default.