Updated core analysis events

Updated API for core analysis events, moved where row and cell
properties are declared.
Updated adv. cross-tabulation

Updated how the adv. cross-tabulation is detected and stored against the
analysis objects, created initial test code for adv. cross tabulation.