Here's a new patch for this bug, based on the ideas in Steve's patch. It also allows &rest and specs wrapped in vectors to attempt to match before a dotted tail.