BUG: solves complex array clip in issue #5354 and added symmetric regression test
Merge pull request #5386 from maniteja123/issue5354

BUG: Issue 5354 - Fixed segmentation fault when clipping complex arrays