[DMR-1] Fix expression resolving with nested braces