Refactor Instanct ToArray Expression visitor