Ancestral sequence reconstruction of vanadium dependent haloperoxidases