added CSRA1_Reference_GetFirstRowId and CSRA1_Reference_GetLastRowId
refactored CSRA1_ReferenceIteratorNext, fixed a bug