Copied `deserializeTxn()` from ZK-3.4.13
https://github.com/apache/zookeeper/blob/release-3.4.13/src/java/main/org/apache/zookeeper/server/util/SerializeUtils.java#L54
With addition for handling `create2`, `createContainer` and `deleteContainer` transactions when downgrading from
3.5.x to 3.4.x