Simplify TransformableEntity to work with any regular Iterable<Templates>.
Add TransformableDocument unit test.