Add a public API for the $() methods implicitly available in DSL rules.

 +review REVIEW-5177