Modeling and Measurement of Toroidal Currents in the HSX Stellarator