hoist boundary check code to the out of loop
simplify a code template for _qrintf_chk_?x
change the types to size_t
Merge branch 'pr/10' (close #10)