fix($resolve): resolve factories from string names

$resolve now correctly executes factory functions when provided the name of the factory as a string.

Closes #449