Fix DFT+U with spinors
A minor fix that was preventing to run DFT+U with spinors and ab initio U.
Minor bugfix that was making the code not running.
- I have checked that my code follows the Octopus coding standards
- I have added tests for all the new features added in this request.