Kölesérius de Keres-Eer, Samuel, Government Secretary of the Principality of Transsylvania