Add eof to MemReader and BufReader

It's easy to figure out and useful as a sanity check sometimes.