I can't quite figure out the root cause of why its failing, but found this working and broken cases for ToArray() on IEnumerable.

https:...