cf-dc-api: minor vardata save bug; working define and undefine; skeleton activate and deactivate commands