Per these docs:
http://snapsvg.io/docs/#Paper.g
The parameters to these functions are optional. This change stops the
TypeScript compiler complaining when you call them with no arguments.
Also, the return type of `g` and `group` should match (they are
aliases); and `any` has the benefit over `Object` here of allowing code
like `s.g().attr({id: "x"});`