Finish compiler for Average and ComplexArrays