Fix AOT issues

Simplify IScheduler definition(reduce TState)
Changed Unit to class #4
Changed TimeInterval to class
Changed Timestamped to class
AotSafe Utiliy(ToSafeEnumerable, WrapValueToClass)