Fix role environment handling.

In turn, fixes .named(...) on QAST nodes.