Add code reproducing https://rdotnet.codeplex.com/discussions/535555. Opened issue 89.