Reorganize codemeta-related functions and tests.
The codemeta module was missing 'merge_values' even though it was the logical place,
and its tests were scattered around multiple other modules' tests.
This commit moves all these in codemeta.py and test_codemeta.py.