linker: Improve handling of unread/unwritten shader inputs/outputs