fix issue where custom idAttributes were causing dupes.
use model's 'idAttribute' as default main index if supplied.