In general, area measurements are included in the annotations, and you can
sum the areas of same classes by modifying scripts like this, while subtracting the sub-areas (sum tissue - sum peritumoral area = blue, sum peritumoral-sum tumor = peritumoral area, etc). That is provided your area types are always in the same size order. It looks like they always would be. The points would be slightly more complicated since they are annotations, and do not really stack well in terms of being "inside" stacked annotations. You would need a script to check .contains for this, I think, though that may have changed if you are using 0.2.0. I would recommend including the version number if you re-post on the QuPath forum for further help.