refactored for strongly typed schedules and batches
fixed serialization issues with RCronBatch