Extract a hashChanged method from the meta classes

Also replaces the changed map with a set.