Simplify ParticleContainer and add better tests for propagate! #1242
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR simplifies ParticleContainer a bit more by removing the
modelfield which hasn't been used (and was actually misused in the tests by setting it to arbitrary functions). Moreover, it adds the additional tests promised in #1237 (comment).When I added the tests I was a bit surprised actually that the implementation of
propagate!(andconsumebefore, that code was not modified in the recent PR) increases the unnormalized logarithmic weights of the particles with the values that areproduced by the particles and not just sets them to these values (as I would have expected from the algorithm since, if I understand correctly, these values correspond to the log probability of the next "observation"). In the currently implemented samplers (SMCandPG) this does not matter though since the unnormalized weights are reset in theresample!step which is performed before everypropagate!step. Nevertheless, I'm wondering what's the reason for the current implementation?