BUG: Bug in setting complex dtypes via boolean indexing (GH6345)

closes #6345