Use ocaml warnings to do a little clean up.

Remove duplicated declarations.
Silence "unused variable" warnings.
A bit of formating for some functors.
Fix #27 and make the svg syntax extension slightly less broken.