Improve data structures used by ShaderParser for less dynamic memory allocation & better performance.