fix gold carryover.

http://gna.org/bugs/?23118
better error on invalid variablename in wesnoth.set_variable

first we now throw a lua error instead of just giving a log message this
makes it easier to find the source of a bug becase we now get a
stacktrace.

Also we now give a more detailed error message.