codegen: Use the SelectorBuilder to generate index and field selector expressions.