This resolves references and redefined values. It currently doesn't work properly if section names contain dots.