First, I'd get the dowel pins replaced! Only way to get the heads and gaskets positioned correctly on the block. Seeing as how the heads are now off, I'd suggest having them pressure tested and the block surface checked for squareness. Might want to do the straightedge and feeler gauge check on the block surface where the heads bolt on, too.