ENH: Add GenericIO API to query/clear variables
BUGFIX: Call GenericIO::clearVariables()