Irreducible components of varieties of modules