The following bit of Gremlin should work as a method for merging Map:
gremlin> g.inject([a: 1],[b:2]).fold([:], addAll) ==>[a:1,b:2]