Fix a bug in indexOf(). Add indexOfElement() and request().

Or expandBuffer() ?