Some finiteness results for groups of automorphisms of manifolds