Allow explicit key collections with non-== key tests

Fix for issue #440.