Fix the index controller to deal with the new dict-style `trees` config value.