(Backends) Fix type comparison.