Fixed handling of static fields in the parser.

References #320.