TSessionDialog::GetFtpProxyLogonType: Fix getting ftp proxy type.

This shoul fix failure connection using SPCKs5 proxy.
Minor.
Minor code style: rename iterators