jim.c: check for missing quotes, etc. in eval, expr

Throw an error if a script or expression is missing a trailing bracket, brace
or quote rather than simply ignoring the error.

Reported-by: Florian Schäfer <florian.schaefer+github@gmail.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>