Add support for TAP (test anything protocol) output

In that case, please add a comment explaining why you want that (what's wrong with name??), and maybe find a better name than "index", because no one is going to assume you want the indexes to get mixed up over time...