grouping charts by CFs was broken during refactoring

SUBKEY has no dot in it
we need CustomFieldLookupType in Report::Tickets::Entry

new generalized code depends on it, otherwise we can not
load CFs
quote identifier when we construct queries
test charts groupping by custom fields
Merge branch '4.2/charts-grouped-by-cfs'