fixed getTypeString for array