FIX: extra argument substitution in infix expressions with nested right expression paths.
TESTS: added regression tests for issue #965.