fix collection expressions to allow reference to outer context
jira: close MB-9188