Separate out the position quantity summing function, to enable it to be overridden and hence customised.
Fix bug in findNode() that caused merge to break in portfolio nodes deeper than one level.