Squash -Wunused-local-typedefs

... at least those showing up in the PETSc build.

@poulson I don't know what workflow you would like, but I'll refrain from dropping anything into 'master' unless you say so. This branch should be closed when it is merged.