XDR incorrect encoding of uint16; tests and benchmarks
Improve XDR performance