When an apply node execution raise an error, print the inputs values when they are scalar.
Generalize the error message to help work around a travis failure.
Merge pull request #1716 from nouiz/err_msg

When an apply node execution raise an error, print the inputs values when they are scalars.