Track composition values by index to handle duplicates.
Allow unit test to specify a file to load.