============= DO NOT MERGE ========== Sanity checks for stratified windows.