Fix grid builder unit rule-consolidation

Moving the variable initialization out of the loop broke the
rule-consolidation mechanism.

Fix gh-12
v0.2.1