Germs of holomorphic functions on topological vector spaces and invariant rings