Fixed automation bugs.

Added isValid() methods to most RTTI classes. Now automagically detects and marks (almost?) all RTTI structs, needs testing...