[graph-tool] state.copy(bs=bs, sampling=True) throws error