Some fixes from hooking this up to the xml <-> table converter (currently at https://github.com/otalk/convert-jingle-lua)