[Fix] BelongsToMany: remove numerical id typecasting

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