Fix stride_stricks.as_strided function for object arrays

Currently, calling as_strided for object array results in 'TypeError: Cannot change data-type for object array.'. Fix so that dtype of new array is only set for void dtype, as originally intended.
Merge pull request #4408 from charris/backport-1.8-gh-4377

Fix stride_stricks.as_strided function for object arrays