ipaddr: add encoding package assertions, now requires go1.2 and beyond