Refactor Stream#decode_tag