Fixes Default Value compilation to AST

Fixes http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2475
Fixed migration issue with TakeEveryNth, to fix testcase
UsingDefaultValue.
Fixed validation in the test UsingDefaultValue.
Merge pull request #1369 from sharadkjaiswal/DefaultValue

Fixes Default Value compilation to AST