added curly braces around consts
Merge pull request #313 from OP2/jacobian_const

Wrap jacobian snippets in do { ... } while(0)

Isolates their scope to be able to use them more than once.