update for generalised AST.Apply

AccelerateHS/accelerate#95