[BZ-1092502] fix multi-line statements using mvel dialect
[BZ-1092502] add necessary line breaks at the end of a merged multi-line statement
(cherry picked from commit dc49920ec6b991379bcece10ed0afbabcc3460f5)