Fix flattenArray parameter being ignored.

Looks like the flattenArray parameter being passed in was being ignored on this NSURL category method.