Allow "object" and "apply" in AST expressions.

Refs #5870
Build fix.

Refs #5780