Functorial properties of algebraic closure and Skolemization