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

Can you throw all of these tests on `BufferedSourceTest` so the same behavior is validated on `Buffer` and `RealBufferedSource` at once?