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

Removed DLL insertAfterOffset() method; and renamed insertBeforeOffset() as add()
Modified add() to handle a push if specified index = count of elements already in the DLL, while still adding before the specified index otherwise
Adjusted tests accordingly to reflect the changes