Ensure that index matches scope [Fixes #33]

This prefixes the declared index with the scope (if defined), fixing #33.

Note that scopes defined as lambdas can't be easily indexed this way, so I chose to leave the default behavior (of indexing only `position`) in that case. In many cases, it may actually be preferable to disable the automatic index and declare another manually.