fix(directiveFactory): add ability to get directiveFactory from name

A directiveFactory will not necessarily be the second parameter of module.directive.
Ensure the patched version of module.directive can instantiate directives that
have their directiveFactory contained in an object.

#32