Clean up the check-spaces script
Cleaning up means - converting indentation using tabs to spaces - fixing unsafe constructs - enabling pragmas to detect unsafe constructs in the future Doing this as part of legacy/trac#5500.
issue