Improved handling of on-site (e.g., chemical potential) terms in the mean-field Hami, and some other basic (assert-related) improvements.