FIXES ISSUE #1453: let ModifyVar change numerical variables

Adding a ```toString()``` call within ```serializeVars()``` fixes this issue #1453. If the variable to be modified is numerical, this leaves the passed in value as a number, but converts to string before calling slice.