Allow writes one past the end in snogray.vector

This supports the usual Lua idiom for extending an array,
a[#a + 1] = value.
Make lpeg_utils.update_err_pos work with a null parse-state

This allows a grammar which uses lpeg_utils.ERR_POS to be used outside
of the lpeg_utils framework.