Fix Array serialization, missing index

This is not everyday you use it, but when you do it can become messy.