Test initial event identifier in DeclVar<T>
Create LocalVar<T>(T) and SharedVar<T>(T) constructors

These constructors allow thread-local and shared variables to be
initialized, e.g. LocalVar<short> x = 7;