Some basic validation for generics.

Fixes issue #51.
Highlight slot option keywords.
Improve syntax highlighting in testworks suites.