Allow explicit key collections with non-== key test

Fix for issue #440.