more robust lua error messages for noit modules
fix lua 5.1 vs. 5.2 issue re: unpack