fix bug in mob preserve module crashing on harvest replace
add support for secure time access
switch back to minetest.serialize instead of custom serialization method