Improve performance of Package#add

by converting Package#contents from an Array to a Set.