Fixes on the ptrie serializer + add mmap-based read of the structure.