Fixed bug in multinomial resampler on device, which was assuming that
cumulative weight vector was from an inclusive rather than exclusive
prefix sum. Standardised both host and device implementations on
inclusive prefix sum. Fixed some erroneous assertion checks in GPU
implementation of ancestry cache.