Convert obj2yaml to use yamlio.