Pass `_inputs` through repetition functions.

Note that the handling of `_inputs` is still not quite right; I suspect that it
points to the local fieldset rather than the top-level when we descend in to a
field of type "fields". I'll add test cases for this shortly.
Support for script directives on `repeat` property.