Ensure that a temporal point and a spatiotemporal box have the same spatial dimensionality as given by their flags.