entities: introduce .toJSON()
heap: ensure cached booleans/oddballs
0.6.1