Update ArrayPackedSet.java

check "other instanceof ArrayPackedSet" before doing the cast...
Merge pull request #244 from martinschaef/patch-3

Update ArrayPackedSet.java