More type changes that should have been part of my previous commit (more robust
handling of [set_variable]rand=).


git-svn-id: http://svn.gna.org/svn/wesnoth/trunk@56154 75b3775d-3801-0410-9e12-e2e43121521d