Add a test case for nested language block in function

This is for defect http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-3896