Okay, this gender swapping spell is interesting and promising. What it says that Sophie won the related challenge (mirroring how Agatha got across the bridge to the Boys' school), gnomes who, when younger, can change gender freely and that this is connected to their neutrality and peaceableness.