Added support for complex vectors.
Added tests for complex vectors.