Fix #331: Resolver shouldn't use private extension methods
Fix compiler warnings.