BUG: Search for Folders in TreeDropdownField

Fixes silverstripe/silverstripe-framework#3173
Fixes silverstripe/silverstripe-framework#3035