Fix comment in primitives validation
Fix comment in primitives validation

Also refactor type query for efficiency.

dneto0/SPIRV-Tools,dneto0/SPIRV-Tools,antiagainst/SPIRV-Tools,KhronosGroup/SPIRV-Tools,dneto0/SPIRV-Tools,pierremoreau/SPIRV-Tools,pierremoreau/SPIRV-Tools,antiagainst/SPIRV-Tools,pierremoreau/SPIRV-Tools,KhronosGroup/SPIRV-Tools,KhronosGroup/SPIRV-Tools,dneto0/SPIRV-Tools,dneto0/SPIRV-Tools,KhronosGroup/SPIRV-Tools,KhronosGroup/SPIRV-Tools,pierremoreau/SPIRV-Tools,pierremoreau/SPIRV-Tools,LukasBanana/SPIRV-Tools,dneto0/SPIRV-Tools,LukasBanana/SPIRV-Tools,KhronosGroup/SPIRV-Tools,KhronosGroup/SPIRV-Tools,LukasBanana/SPIRV-Tools,KhronosGroup/SPIRV-Tools,pierremoreau/SPIRV-Tools,antiagainst/SPIRV-Tools,antiagainst/SPIRV-Tools,pierremoreau/SPIRV-Tools,pierremoreau/SPIRV-Tools,antiagainst/SPIRV-Tools,dneto0/SPIRV-Tools,dneto0/SPIRV-Tools