Use TextMarshaler and Text.Unmarshaler in go-yaml

Fixes issue #38. Using net.IP for the tests since it implements those interfaces.