Revert "[Stan] Temporarily commenting out problem code"

This reverts commit 3ce06a250dfcd68bfaf4d80239b04e754a458a32.