"RemovedFirst" tests and "Remove" methods bug fix.

"RemoveFirst" and "RemoveLast" methods fixed to remove
item only once.