I've heard that fiberglass resin is safe once it's totally cured. However, I tried to use it once, and it didn't cure properly, it remained sticky on the outside. So I certainly wouldn't recommend it unless you already know what you're doing with it. Marine epoxy resin is also reported to be safe, but I know nothing about it, or even where to buy it. I have seen an aquarium-safe 2-part resin being sold on eBay, but only in 1-gallon quantities.
Another question is.. why seal wood or rock? You actually get a lot of benefit from the rough surface of these materials, as that is where beneficial bacteria live in your tank.