Fix inet codec parsing and unit tests (JAVA-454).