Fix role casting in TransformationContext
Update acl-related methods in behat