builder: ONBUILD triggers were not accurately being executed in JSON cases

closes #8520

This re-invokes the parser for onbuild instructions. The method signatures for the dispatchers needed to change, so sorry about the extra noise.

/cc @crosbymichael @tiborvass @tianon 
Hmm. This is broken. I'll fix it in a few.