vkd3d-shader/hlsl: Some fixes.
A mix of a miscellaneous fixes:
- Fixes to failed asserts I have stumbled upon when implementing other features.
- Checks required for properly supporting object components.
- A couple of code improvements.
A mix of a miscellaneous fixes: