this test doesn't do what you'd want it to. in essence, you're saying "if the input scope is an array, throw away that array and use its contents as a stack of scopes. otherwise, use the object as the only scope in the stack".

Is this necessary to satisfy a specific test?