Handle both Array/Enumerable and String values for excludes parameter