added missing bool function to InStream
fixed name collision with named types