Collect all possible variable names to compose
Collect all possible variable names to compose

This fixes the bug where an empty map was passed in and
thus nothing ever was composed.
cmusatyalab/opendiamond-java,cmusatyalab/opendiamond-java