Remove `lv_len` and use `nlocals - 1` instead.
Check that `lv`'s length is always `nlocals - 1`.