Move arrays and structs out to their own global static constants. Also, replace illegal names in HLSL as well.