generalisation of resampling code to support a) multiple yoked outputs b) arbitrary inputs to bootstrap e.g. contrast vectors