Backport 3270

Fix for a.astype('S') truncating strings when `a` is an object array of python strings.