rb.pas : cleaned up generics to compile under latest fpc
removed 'idx' parameter type from sequences: it's always cardinal.