use type parameter V to avoid casts when using groupBy step

see https://github.com/mpollmeier/gremlin-scala/issues/24