librpc: Change a uint16 to use the max property instead of range