improving AS_TERMINAL_INOUT use for symeig/schur/chol and balance