compose2 for multiple args

Updated compose2 so that the first function "g" can take multiple
arguments. This will fix ramda.union.