changed definition of getPointerKeys() to collect field keys as well as instance keys