Access frames exclusively by index.

This is a still-fragile but very promising permanent structural improvement to
scope and environment handling.

Signed-off-by: Corbin Simpson <cds@corbinsimpson.com> <simpsoco@google.com>