Prevent setting aliases on self
Include keyName into the assertion error
Merge pull request #5608 from gtsop/master

Assert setting alias on self