Merge pull request #3038 from ey6es/metavoxels

Support for writing to and reading from a JSON format that mirrors the bitstream format, with tools to convert between them (using generics so as not to require the original classes).