restrict aggregate pipeline to array type only
added documetation and stubbed operators