Fixed parent tracking in Jobase#addBranch
Small optimizations, hasLeaf/hasBranch, public setName
hasBranchExplicit/hasLeafExplicit
Small fixes