Added the hasValue() method.

The hasValue() method tells us if the given value is present in the
mapping. I’ll probably add a .values() function later, and this
function should probably use it internally as well, but this will do
for now.
Merge branch 'hasValue'