Polyamorphism mirrors polymorphism in the liquid-liquid transition of a molecular liquid