Clang fixes for PhysicsTools/SelectorUtils

Fixed the clang compiler errors and warnings originating from PhysicsTools/SelectorUtils.
These fixes are needed for the static analyzer to successfully parse the code.