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

Refs #5870