fix warnings in refnanny module