Implement ordered children interfaces in codegen.