Patches for Range support for check_nt [sf#2804825] [#994]