correct spelling errors in comment
check that collocated_ref_idx is a valid index in input stream
check that collocated_ref_idx is a valid index in input stream