Fixed findAllRefs/getOccs bug where private properties declared in the constructor were only local to the constructor.

Fixes #975.