fix bug in CompoundStateSpace::getMeasure, thanks to Jonathan Gammell for catching this