As for the run-time problem, from the symptoms the root cause is most likelythe same as this issue. The bug has been fixed and should be available in the next 12.1 update 9. It should be available soon this month.
Please wait for the update 9 and let us know if it fixed the run-time issue for you.
For the debug issue, is it possible to create a testcase?
About the debug issue I duplicated it with update 9, and have filed a bug report for it. I'll let you know when there is any update.