Fix a bug introduced by svn rev 8550 (patch 2693798); HLSL float4 arrays were not working because the RegisterCount (which was used instead of RowCount in the patch) increases, which made it think it was a matrix, and set elementCount to 16 instead of 4 which broke updating using array auto-params. Change the code so that we use the Class element of the description to determine if it's a matrix or a float array to get the correct results.
Fix a bug introduced by svn rev 8550 (patch 2693798); HLSL float4 arrays were not working because the RegisterCount (which was used instead of RowCount in the patch) increases, which made it think it was a matrix, and set elementCount to 16 instead of 4 which broke updating using array auto-params.
Change the code so that we use the Class element of the description to determine if it's a matrix or a float array to get the correct results.

vbudovski/ogre,vbudovski/ogre,vbudovski/ogre,vbudovski/ogre,vbudovski/ogre