Add InputStream#ungetc

Works like [IO#ungetc](http://ruby-doc.org/core-2.0/IO.html#method-i-ungetc)