td_occup and states parallelization
Some cleaning of the logic for td_occup and fix for the states parallelization.
Allow for TDOutput = td_occup to run in parallel.
- I have checked that my code follows the Octopus coding standards
- I have added tests for all the new features added in this request.