Fixed clone self in context spawnInstance

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Removed core\stub() from generic dependency resolver

Signed-off-by: Tom Wright <tom@inflatablecookie.com>