get all traits of ancestor classes & ancestor traits

useful when using setters in traits
I think we can get away with doing `$traits[$key] = $value` inside that foreach, which shouldn't reset any array positions.