Nonsingular retractable modules and their endomorphism rings