Add tests and improve legibility for ess and splitrhat functions

PyStan ess() returns a slightly different value than RStan's rstan_ess.
I don't know what the source of this numerical difference is. Given the
admonition to take ess values with a grain of salt, I am letting it pass
for now.