I just read a provocative blog by Ron Offringa about the types of questions we should and shouldn't be asking. I think he makes a good point about secondary questions about the Biblical text displacing the more important, primary concerns. We certainly expend too much energy doing this when the most important things about the text are plain enough to all, and what we should generally be focused on as far as the text's significance and applicability to how we should live and what we should believe.
However, in his response to questions about Genesis he has done the very thing he is cautioning against when he asserts, fairly dogmatically, the way in which the Genesis accounts must be read, or at least can't be read. Yes, the Genesis creation account can be read as allegorical, or at least not as containing literal history or scientific truths, as many of the early church fathers read them. And certainly the authors of Genesis and other ancient Scriptures weren't consciously transmitting modern-scientific truths in their writings. But that doesn't mean the text could not contain truths that would only make sense in the light of modern science (unbeknownst to the author), though of course that still isn't the primary intention of the text. Which, as it happens, is what I hold to be the case. That is; that the events can be read as literal history, though not necessarily as literal 24-hour days.
The creation accounts, almost inexplicably, make near perfect sense in the light of modern science once certain things are accounted for (Hebrew 'day' can mean 'era'/'age', the perspective shift in Gen 1:2, etc.). This doesn't displace an allegorical reading as illegitimate, or alter the main point of the story at all, only reveals the perfection, infallibility and dynamism of God's word.
When the authors of biblical texts were writing, they didn't know how their writings would fit within the Biblical canon. And yet the texts take on greater, richer meanings within the canon, despite the fact that the authors had no clue this would happen and it was not part of their intention when writing. The texts enliven each other, give context to one another, and tell a fully formed narrative in a way that each author working separately, in his individual historical context, and solely in the light of their own conscious intentions never could accomplish. Only the Holy Spirit working through them, and within history, could accomplish this, which is why limiting the truths the Bible is allowed to reveal to those truths that reside in the conscious intentions of the authors working in their specific historical context is too restricting of a hermeneutic. Similarly the text can contain other types of truths -- such as scientific ones -- that have nothing to do with the author's conscious thoughts, historical context or intentions.
Modern science determined -- contrary to most educated belief throughout history -- that the universe has a definite beginning at a finite time in the past. The Bible is the only Holy book to make this very claim in multiple places, and big-bang cosmology has confirmed this is true. This is just one example, but they are numerous.
It is certainly very important to understand context and the author's intention and cultural differences when reading the texts. It's also important to realize that it is not only through the author's conscious thoughts that the Holy Spirit speaks through the text.
In any case, just because I hold this view I don't think that other views are completely untenable. For example, someone may hold that the Genesis text is meant to be taken allegorically and can not be reconciled as literal history in any sense. This, as Ron rightly pointed out, is a disagreement, but not one that should be elevated to a level of greater importance than those truths which are beyond dispute: God created the universe and saw that it was good, God created the universe for the main purpose of being the domain of man and giving him the gift of existence as an act of infinite grace, God made man in His likeness, man is now fallen and sinful which separates us from God etc.
While we should avoid unnecessarily rigid dogma on matters of relatively small importance, we also need to be wary of slipping into counter-dogmas of our own on those very same secondary matters.