Issue #22 : No code generated if scalar subquery contains count(*)