Merge pull request #96 from wpreul/master

Using safe stringify when stringify fails
Event loop delay now uses setImmediate