lua : get length of array from the stack and not as a parameter
lua : add a way to have an error-rising call to lua scripts
lua : reduce load on the locking+redraw system