fix linkage of range_beg_len and mrb_range_beg_len
Merge pull request #2502 from cremno/fix-range_beg_len-linkage

fix linkage of range_beg_len and mrb_range_beg_len