Fixed compile issue in array serialization template.