Grefwe Erik Sparre , Professorn ochriksarkiwarien