On the singular sets of modules