fix bug in as.output.default affecting unnamed vectors