Clean up the AExpression class.

Refs #5846