Revert "codegen: Inherit array_{length,null_terminated} from base parameter"

This reverts commit ebfe7b7411f413a8631fec22e704a0d8921f4417.