Fix Shader member variable numVariations_ being uninitialized. Closes #585.