GPU_shader_export() silently leaves uniform->lamp data undefined for:
GPU_DYNAMIC_LAMP_DISTANCE = 16
GPU_DYNAMIC_LAMP_ATT1 = 17
GPU_DYNAMIC_LAMP_ATT2 = 18
GPU_DYNAMIC_LAMP_SPOTSIZE = 19
GPU_DYNAMIC_LAMP_SPOTBLEND = 20
causing GLSL export scripts to be missing relevant information.
GPU_shader_export tests if GPUDynamicType is a lamp by checking against the interval (GPU_DYNAMIC_LAMP_FIRST=6,GPU_DYNAMIC_LAMP_LAST=11), which is no longer sufficient.
The enum GPUDynamicType has unfortunately evolved two separate intervals for GPU_DYNAMIC_LAMP_*, which LAMP_FIRST/LAST no longer covers.
Since the original intent of GPU_DYNAMIC_LAMP_FIRST and GPU_DYNAMIC_LAMP_LAST has been lost. This patch (against master) replaces them with the macro test function GPU_DYNAMIC_IS_LAMP(GPUDynamicType).