Merge pull request #2 from JohnPJenkins/master

"ALLOC_DEBUG" option to support debugging memory issues
Added John's patch to reset the bitfields prior to event handling.
A few more stragglers brought in.
Replaced max/min macros with ROSS_MAX and ROSS_MIN.

This is expected to break some models but it should mostly be a
simple replacement.
Follow-up to fix the models using max / min.