attach and detach take arrays

Make clear that attach and detach take arrays as id input
attach and detach only take arrays of IDs
Merge pull request #900 from tobikris/patch-1

attach and detach take arrays