[Fix] BelongsToMany: sync return value is forced to int

Removes the array map intval and int typecasting which breaks the return value of `sync()` when  models with string based keys are used.