Introduce 4 byte numbers for simulation elements

Simplify date handling.