Add -boundscheck=[on|safeonly|off] option

Replaces -noboundscheck (which becomes deprecated)

Fixes issue #12550
Merge pull request #3443 from eco/boundscheck

Add -boundscheck=[on|safeonly|off] option