PHOENIX-1034 Move validate/reserve of sequences into query compile