Fix compilation error due to ambiguous addObject
Merge pull request #361 from daniel-c/master

Fix compilation error due to ambiguous addObject