refactor loader so settings DumpAST/DumpByteCode flags work all over the place