Allow streaming to DUMP_SCOPE()

Also define _MAGIC_ when magic.h is included.