Start detecting objects needing finalize.

We don't do anything with them yet once we've detected they need to be
finalized, but this seems to get the detection of that case working.