Bugfix/issue 464 diag pre multiply

Summary:  declare diag_pre_multiply and test
Inteded Effect:  ditto
How to Verify:  run tests, or try a model with it
Side Effects: none