Some results in the theory of real analytic spaces and of real algebraic varieties