Allowed for precompiled partials

The extend helper was assuming the parent partial was not already compiled. I added a check to see if the parent partial is a function, and if so, just invoke it directly rather than trying to recompile.