Parser update to better understand mixed tags, work on triggers

Ongoing work with the parser to nail down mixed and deeper nested tags.
Update source5 to show the nesting processing.

Fixing some type chaging variables to static var declared types to avoid
mixing.