Dynamics and Geometry of Icosahedral Order in Liquid and Glassy Phases of Metallic Glasses