Move segments processing
assertSame && assertNotSame
Merge pull request #5330 from lucasmichot/4.2-support-namespaceditemresolver

[4.2] Support : Segments don't need to be processed for namespaces
Merge pull request #5336 from lucasmichot/4.2-tests-same

[4.2] Tests : assertSame and assertNotSame
Add only and except methods to Collection