Edit transform to only check strings and arrays, e.g. not numbers!
Move auto-population function into plugin.
Remove some unnecessary code.
Improve performance by only populating applicable documents.
New make root function. Flattens populated docs to correct root path.