[Bug 3608943] Check ip::version for empty input and react
properly. Extended testsuite. Bumped version to 1.2.1.
Merged inadvertent fork