Fixed bug with an expression as arguments of function call. Closes #1361