change returnbasedonvalues to handle the weird way that Any... type sigs are represented