Fixed issues with CosmoTools module.

Primarily fixing dashboard issues with CosmoTools module after enabling it on
dashboards including fixing leaks and updating tests (ValidateSources).

Change-Id: I109367e4c774a66d1b80661c48ee470e464ffb17
Merge topic 'fix_particle_streaming' into next

4ca529d Fixed issues with CosmoTools module.