GDS-1275: Improve AMF3 (de)serialization performance.