Chorismatase mechanisms reveal fundamentally different types of reaction in a single conserved protein fold