Untangle snapshot mapper

Also fixed performance issue with `StructEncoding` arbitrary
Not sure why the these java files changed when i regenerated from thrift definition. It looks like the changes are only internal variable names and extra imports