Fix creation of string arrays from object types