Revert fixes for infinite looping

Prepare for a fix that handles wrapping around in the negative
direction.
Fix infinite looping

When we are looping until we find an OK size (or give up and
use the smallest size), actually change the index we are testing.
Mark as compatible with GNOME 3.8

All the code in the extension works with GNOME 3.8 as well.