Untangle snapshot mapper

Also fixed performance issue with `StructEncoding` arbitrary