fix deep_equal for enum validation