Fix #239 - handling of package objects

References to `.package` are now also inserted if the
accessed member comes from a class inherited by a package
object.

Closes #239 

Review by @retronym