[PRD-5041] - Fix and test to validate event order.
Merge pull request #350 from tmorgner/PRD-5041-5.0

Prd 5041 - Regression in expression/function eval order, 5.0 branch fix.