Analyticity of the closures of some Hodge theoretic subspaces