Added tointeger validator from Lua 5.3.