Add “$” method to Layout. Closes gh-516.