Add constructor for Func wrapper from Function

Func contains all the logic for transforming a schedule, so it is useful to be
able to reconstitute a Func handle directly from a Function dug, e.g., out of
the call graph of Functions.