Allow references as range expressions. Issue #47