Adding a length assertion for Array#splice