Made bind check for event validity at compile time.

This may cause issues, but with the addition of event_exists() this can be solved. Syntax highlighters are updated with "case" and "default" keywords, and I have begun optimization of get_values().
Merge origin/master