allow gpuarray take to be used with complex types
Fixes to making gpuarray.take compatible with complex numbers (w/test)