Enhancements to bootstrap

Additions to allow bootstrapping of experimental units in cases where data have been collected with repeated measures.