Fix bug with extended lifetimes and resolving multiple classes to the same interface.