[BACKPORT] attribute_changed? and related should cope with aliases

Backport of #2898.