Improve some cross-sectional compilation tools.
Add support for two-rate non half hourly tariffs and for LDNO margins in statistics.