Add `CachingWriter.prototype.enforceSingleInputTree`.

If a consumer wants to enforce a single input tree (instead of
defaulting to an array), set `enforceSingleInputTree` to `true`.