The accelerometer?
The rattle is present on all of the phones. You shouldn't have gotten a replacement.
No one from apple tech support on the phone or the 3 genius tech ever said anything about it being due to the accelerometer. Also I have 2 3G's and both do not have this rattle. They have accelerometers too...
Still a mystery to me...