Improved the special NULL handling code for WDDX processing. Learning design DTOs now use the convertToBlah utilities in WDDXProcessor. Also covers changes made by Mai recently.
Fixed up the comment for method getActivitiesByLibraryID: in a normal case, each library shouldnt have more than on template activity. Also added the method getTemplateActivityByLibraryID