Fix the lookup of values in lists.
More text in doctest.