Fix #48358 insertBeforeOffset() and insertAfterOffset() methods for SplDoublyLinkedList

Additional tests for function argument validation