While the punishments might have been made more severe than what might be written in the Quran specifically, there are still punishments and trying to punish either of the two behaviors/states of being (leaving a religion or being homosexual) is an immoral act. Just saying that either is a sin is enough to put the teaching in the immoral category for me.
RE: What are the consequences of being spiritualist