Fixes #264 : Skip unexpected elements when there are none

This applies to the following methods :
- containsOnly
- containsOnlyKeys
- containsExactly