fixing countly to remove nested arrays and dictionaries