Add tests for complex numbers and arrays