Local properties and Hilbert schemes of points