Fixed bounds handling of index specifiers

Now handles and warns the user when they attempt to enter an invalid number.