Compare object equality on attributes
Check the type too for equality
Merge pull request #14 from dplummer/resource-equality

Compare object equality on attributes