HCOLL-284 better assert-independent bounds checking