New tests

Tests for arrays return who got to be proxified, and for case where
attribute and expressions are set.
Fix bug, now pass all test.

In AccessManager:isGranted() if attribute was set, expression was not tested.
Coding style.