Merge "Fix stack trace logging in RefBase."