Added missing new.
Added templated fetchAll() for non-vector types.