Make hasmanydouble add and addMultiple a single function that accepts both instances and arrays. Closes #2138