Now accepting arrays in addition to IEnumerable<T> as input parameters.
Fixed tests.