[BUGFIX] cmpIPv4: prevent E_NOTICE, cleanup compare, testcases