Separate allow_gc flag for scan

This add a separately configurable flag to enable/disable allow_gc
should it not be 'config.scan.allow_gc' ?