Added a fromObject method to DateType
better error handling in safeEmit
fix wrong urls in unit test