Adds function flatMapValues.

Yes, this test looks more interesting.