BUG: Fix creation of string arrays from object types
STY: Formatting changes
Merge pull request #3491 from ContinuumIO/astype_fix2

Fix creation of string arrays from object types