Support compound block expectations.

For #552.