Allows partials to be an already compiled partial template. Adds isFunction utility method