Improved AttachmentExpression equality logic.
Cleaned up ChordExpression.