Changed some typedefs to using statements.
Added external function versions of toReal and toComplex for ITensor and IQTensor.