Theory and simulation of magnetohydrodynamic dynamos and Faraday rotation for plasmas of general composition