If there is a "regions" annotation, the builder annotates the ast with a
"contents" annotation as well.
Fixed bug in the ordering of regions.