Different type of bans are:
by IP
by hostname
by name (u've done that)
by email
by user id
If u set expiration date to, lets say, 5 minutes from now, then u can ban yourself without worrying, the ban will expired in 5 minutes and u can login as admin and delete that ban entrie.