Centralize debug options in a -gX flag.
Fix up the source map JS output 'reftest'.

Without re.MULTILINE, the regexp wasn't actually matching anything...