(core) event and clock fixes

There were notable issues in how the clock was
treated previously, which should be corrected with
this commit, though previous values for mouse double-click
sensitivity might be skewed and there are some
serious regression in context stack management.
(core) push/pop context regression fixes

ghost object in push context fixed (all objects
incorrectly treated as persistent) and timing
rebase not applied on clones.