fixing sref
typo, comparing wrong macro
updating schema from OMDoc
fixing mhcurrentrepos auxfile behavior