reverted moving of activating and deactivating in activate and
deactivate functions. Must solve the updating of particle types count in
another (more elegant?) way.