You could have a copper coil that all of the bottles pass. If the magnetic field changes, then it's an aluminum can. Then you can have the non-aluminum cans continue until they reach a certain point where an arm comes down with a pressure sensor on the end of it. You could program it so that if the pressure sensor gives a high pressure reading then it's glass, and if not it's plastic.