Proper range check when using OCTET STRINGs/SEQUENCE OF