Removed unused positions vector and geometry vertex array. Added cleanup of vertex arrays stored in vertex-arrays map.