Fixed defect with arrays

Dimensions and arraycounts should not be additive to array count.