Fix IPAddress and IPEndPoint parsing from JSON