Fixing bug where it was checking for "is _Nullable"

Should be "is _Optional".  I am not sure how the tests passed, except that maybe since _Optional was undefined it became "is dynamic".

Also casted some things to avoid warnings in the DartEditor.