Skip instances of BasicObject

The other checks assume that the object under consideration descends from Object and can fail if the object descends from BasicObject instead.
Merge pull request #2 from jcoleman/find-references

Skip instances of BasicObject