modifications done on groupings stuff. added method parseGroupings and changed it so that the groupings object is not created when parsing the grouping activities. Instead it will be created when processing the groupings array. removed some use of instanceOf as it wasnt working.
Calculate first activity for a learning design now works properly.