`@deprecate`: allow deprecating an expression with another expression.
stats triage: move advanced stats functions out of base [closes #2200]