Add (de)serialize functions for uint16