Add visit_function helper to IRVisitor

This function applies an IRVisitor to all Exprs in a Function
definition, including update definitions, update index args,
and the extents of referenced RDoms.
Merge branch 'master' of github.com:halide/Halide