Change YAMLStor signature to work directly with object