Fix noImplicitAny in handlebars.d.ts

* this one is pretty challenging so its possible I didn't get it 100% correct, but this is the best I could figure for each of these things from reading the docs and code