Fix some Sonarqube code smells
Mostly improve formatting
additionally:
- add/ remove some overrides
- add explicit to constructors
- pass some vectors as const references
- Rename local variable 'idx' to avoid confusion with the outer variable in TransientBCSetter.cpp