Minor bug fix: The mergeChangesForRecordID wasn't taking into account the databaseIdentifier. Which may have caused problems if there were multiple records with the same recordID spread across different databaseIdentifier's.
Adding more efficient access to inFlight / queued / pending change-sets count.
Bug fix: Code didn't take into account that 'nil' is a valid value in a CKRecord