Drop collections after test.

Only on the consistent id test, but that one is run repeatedly.

Written using cleanup functions; we might want to make this part
of tinytest in future.
Merge pull request #2202 from justinsb/cleanup_collections

Drop collections after test (WIP)
Add `UI._templateInstance()`