use util.tinsert instead of table.insert

Fixes #50. The test suite now passes for me, even the one seemingly unrelated error disappeared.