Bugfixes for the 'number' stock validator.

Added 'localhook' and 'globalhook' commands to allow per-element shuffling around of event timing.