Fix bugs for CASCI: ensure CI solver has spin_square; sort CI eigenvectors for state-average solver when compute active space natural orbitals
Fix bugs for CASCI: ensure CI solver has spin_square; sort CI eigenvectors for state-average solver when compute active space natural orbitals

sunqm/pyscf,gkc1000/pyscf,sunqm/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,sunqm/pyscf,gkc1000/pyscf,sunqm/pyscf