add array/groupBy. closes #190

closes #191