fixed issue #104 by iscomplex(S).any() -> iscomplexobj(S)