use traits metadata to indicate if a trait changes the slots.
Created by: stefanoborini
Currently we require users to bind the traits that can change the slots to a handler that invokes changes_slots event. We can achieve the same by requiring a metadata entry on those traits that change the slots, and implement the binding with the event in the base class.