Handle both Array/Enumerable and String values for excludes parameter

Alternative approach to #205 that can handle Array/Enumerable and String in a general way.