Thanks for the patch and test Adam. Applied modified patch to trunk r23569 and merged to release branch 1.11 in r23570. It is cleaner to ensure that setFiles() always leaves the internal _files property as an array instead of adding the is_array tests in various places.