Changed sType init logic and implement it for arrays.