fixed class cast exception in formatParameter if array is of primitive component type