Add support for handling collection.

Signed-off-by: crynobone <crynobone@gmail.com>
small tweak.

Signed-off-by: crynobone <crynobone@gmail.com>
Change method signature.

Signed-off-by: crynobone <crynobone@gmail.com>
Additional changes.

Signed-off-by: crynobone <crynobone@gmail.com>
Refactor method.

Signed-off-by: crynobone <crynobone@gmail.com>
Group similar test.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.2'