This adds the --eliminate-dead-input-components pass which currently removes trailing unused components from input arrays. Fixes #4532