DP-2775: adding agent command to set UDP listener port

Is this an official way of checking type of value? It looke weird.
However, any number modulo 1 is 0. Any non-number modulo 1 is NaN.