Case insensitive and pattern matching

This replaces pull request #1751. This is for issue #1724.
This is a bit vague considering that we decided to just add new matching related keywords to Collections.