typefind: cleanup (un)reffing of several objects.
By using these functions, we can shave off a few lines, and make the intent of that line more clear.
By using these functions, we can shave off a few lines, and make the intent of that line more clear.