Inlined GetFactories implementation. Fixed excessive locking in ResolveAll. Removed leftover parameter in TryResolve.
Moved resolves in ResolveAll outside lock
Looking up expressions to inline through catalog rather than dictionary.