Move equalsIgnoreNullability method into DataType.