http://www.monticello.org/site/research-and-collections/bill-64
However, this information is widely available elsewhere on the internet. Some gay rights organizations cite this as an example of what might be called the “bad old days.” On the other side, conservative organizations have cited this precedent to point out that not only was gay marriage unthinkable to the Founding Fathers, laws existed forbidding gay sex acts and imposing severe criminal penalties. Jefferson's role is particularly significant because he was a good example of a liberal among the Founding Fathers.
In fairness to Jefferson's defenders, it does need to be pointed out that while Jefferson's revised law made castration the maximum penalty for homosexual acts, but that was less severe than the death penalty that existed before him. I guess modern liberals could say Jefferson was moving in their idea of the "correct" direction.
Bottom line: There is no way to get anything remotely resembling modern liberal concepts of religious freedom by reading the Founding Fathers. Yes, they wanted an end to tax-supported churches and clergy. Yes, some of them wanted to allow Deists and Unitarians to have full civil rights. But even the Deists and Unitarians had a view of state-enforced civic morality that is stricter than what Jerry Falwell or the Christian Coalition would advocate today.