Prevention of duplicate records on multiple include hasMany joins.
Fixes #976
Use of .some() rather then .filter() to improve efficiency
Merge pull request #1095 from lemon-tree/quickfix-manyjoin

Prevention of duplicate records on multiple include hasMany joins - Closes #976, #335