Implemented multiple arity support in scopes (closes #3).