As you say it would appear that the batteries are being charged OK and the alternator is providing a good output,I would look at the damaged connection as it could be high resistance and causing the warning light to illuminate,it may be worth,if you can,removing it and giving it a good clean with some electrical contact cleaner,check all the other wiring to the alternator and make sure all the earth points are good.