parser.lua: update to current stdlib and Lua 5.2, fixing a couple of small bugs

Remove a debugging line accidentally left in before.