Measure complexity

Don't automatically expand population logic that exceeds a complexity threshold, and defer rendering of complex measure populations.

Before merging, please see if the functionality feels reasonable from a usability perspective in addition to looking at the code.