Made comments about sindex env_t mention global optargs.
Moved env_t construction to compute_keys.

This makes it more obvious that the secondary index function is
evaluated within a pristine environment.