Added setArrayResult(), setGroupBy(), resetGroupBy(), setGroupDistinct() methods.
Changed member variables visibility from 'private' to 'protected' to allow for possible extending.