WIP Fixing integer timestamp support
Added tests, verified that layers are working