fix ByteArray.splice()
add test for ByteArray.splice()
improve abstraction