Removing some unnecessary changes and making new tweaks in CDD
to move forward with a solution towars working dbj/CDD checkboxes in repeatgroups.
changes in CDD are solving the issue described earlier this way:
--------------
Now we have 5 tables involved

chb_test_c1 - main
chb_test_c1_21_repeat - autocreated when group set to repeat
chb_test_c1_21_repeat_repeat_MKOOD - autocreated when dbjoin dropdown changed to checkboxes
chb_test_c1_21_repeat_repeat_OKOOD - autocreated - CDD changed to checkboxes. Watches MKOOD
chb_test_c1_21_repeat_repeat_AKOOD - autocreated when CDD(checkboxes) element was created inside repeated group. Watches OKOOD
When submitting data and seeing it in list view everything works almost like a charm.

BUT I cant open form to edit it or details view when OKOOD watches MKOOD :
Unknown column 'Array' in 'where clause' SQL=SELECT DISTINCT(`chb_test_c1_21_repeat_repeat_OKOOD`.`OKOOD`) AS value, `chb_test_c1_21_repeat_repeat_OKOOD`.`ONIMI`AS text FROM `EHAK_OV` AS `chb_test_c1_21_repeat_repeat_OKOOD` WHERE MKOOD IN (Array) ORDER BY text ASC

NB! - when the group is repeated twice then the condition looks like IN (Array,Array).
--------------------------------
More work with CDD - cleaning code

following the suggestions by Hugh
Must be analog to Average code
Option to count instead of sum in pivot mode
Merge branch 'pivot_count'
Fixing typo in profile logging in form model
Translation file repaired
Merge pull request #1324 from trob/j3_groupbySum

Must be analog to Average code
code style & using new FabrikString::safeQuoteName
Created a wrapper for FabrikString::safeNameQuote, as safeQuoteName(),
as I can never remember which way round the name should be.
Work in progress on trying to get dataConsideredEmpty to work for
dropdowns.
Merge branch 'joomla3' of ssh://git@github.com/Fabrik/fabrik.git into joomla3
Merge branch 'patch-36' of https://github.com/jaanusnurmoja/fabrik

Conflicts:
	plugins/fabrik_element/cascadingdropdown/cascadingdropdown.php
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik
Fixing copyright on JomSocial plugin, it had the original sample code
copyright, but none of the sample code is left intact.
Added botstrap_tabs form tmpl to build XML
Fixing strict standard warningin youtube element
Fixing issue with bitly'fying links.  Need to cast response from bitly
API to string.
Cast bitly response to string in twitter plugin
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik