Add mkFn and runFn for arities up to 10 #486

@garyb Ok with this one? It's pretty much just boilerplate.