Fix for: register only those helpers and partials that are declared in the context.