Fix useless type warnings

And some more... This time for useless type declarations.