ctdDecimate(): fix bug for NULL columns [issue 327]