Fix to regression in parser for typed variable declarations

This fixes the following [regression] (http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5480)

@junmendoza @ke-yu please review.