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.