Fix Issue 6319 - debug's relaxed purity does not apply to nested scopes

The `SCOPEdebug` flag should be passed to the nested scope.

http://d.puremagic.com/issues/show_bug.cgi?id=6319