Bake a rules builder

Generating the rules checker. Refs https://github.com/cakephp/cakephp/pull/5296
I can check that, I assumed it was always an array