Fixes(?) support for opens attribute.

You had support for it, but you were evaluating it in the context of the scope,
and I thought that it should really be a simple string of "left" or "right". I
also added a test for it.