does it really have to fire metal why not plasma or laser bolts
because the definition of a Railgun is that it fires a dense metal slug, and because if it fired plasma then it would be a plasma cannon, and if it fired laser bolts (wtf? what is a laser 'bolt'?) then it would be a laser, not a railgun
hence, why it fires metal slugs.
Fail.
as for whether aluminium would be able to penetrate a shield or hull if moving fast enough, thats true, but a railgun, especially a modern human railgun which isnt all that powerful relatively speaking, would not be able to propel the slug fast enough. micro asteroid damage is caused by small pieces of stellar debris travelling at a significat percentage of the speed of light (or alternatively, being run into by an object travelling at a significant percentage of the speed of light) and THAT is when the damage is caused. if you are travelling at that speed, then a feather or a tooth or a Daddy Long Legs spider could kill you/do damage. However, the slower the projectile or target is travelling, the harder/more dense the slug needs to be to do damage. As such, an aluminium slug travelling at anything less that a percentage of light speed would just crumple. it may give the shields a hard pinch, but they would recover pretty easily.