add object id to streams to prevent infinite loops.

fixes http://bugzil.la/1020858