temporary resource type check added in event validator
temporary resources support in code generator

with event and resource type classes rewritten