Add type-check test for !=.