Update set.erl

Make check_attribute return true if all attributes are the same
Merge pull request #1 from mrtimuk/patch-1

Update set.erl check_attribute