Fix class comparisons for things like the provider param