[#2212] CID25768:

removed dead code
[#2212] CID25764:

Fixed errant logic to intended behavior
[#2212] CID25760:

Minor syntax change to a macro to make coverity happy
[#2212] CID25759:

Fixed errant logic to intended behavior, limited scope of several
variables
[#858] changed "Praren" to "Paren"
[#2222] [#2212] CID25742 and CID25729:

Refactored resolveDepInArray to remove dead code coverity found as well
as improve readability and simplicity and eliminate copy-pastes