add some wandio helper functions

(backported from libipmeta)