Allow in_merge_bases() to take more than one reference commits.