Add:  simple Application enum.
Fix:  Minor overflows found by Holiman.