CCBReader: factorized some code to compute node's size and added overridable callbacks