fix for enum arrays and collections