Fix order of block-level tag compilation. Fixes gh-495