```
if array.dtype.type is np.void:
```
may be preferable to
```
if array.dtype.kind == 'V':

The assigning of a dtype is just ugly. Maybe a view can be used instead.
```