Fix multiple contexts with multiple values, add test.