Fix field option AST, add main/1 for testing.