Add support for passing parameters to named scopes