Fixed PTX crash caused by leaked Func objects.
Merge branch 'master' of https://github.com/halide/Halide