make @:optional structure fields implicitly nullable (closes #2539)

See #2539. I discovered, that nullability is added on parsing structure declarations, so I added the same behaviour in parsing structures defined with class notation.