code cleanup, fixed bug with real/complex dtype'd expectation value arrays
code cleanup, fixed bug with real/complex dtype'd expectation value arrays

cgranade/qutip,qutip/qutip,cgranade/qutip,anubhavvardhan/qutip,zasdfgbnm/qutip,zasdfgbnm/qutip,qutip/qutip,anubhavvardhan/qutip