Add the ability to pass an SC.ManyArray or a null value

isSCArray is now used to check if the newRecords variable is an array.
This avoid an exception if we pass an SC.ManyArray because SC.typeOf
return 'object'.
If we pass null, transform it to an empty array. This will remove the
inverses relationship.