Remove some Gadfly-specific code in SVGJS.
Fix ambiguity warnings.