Fix bug in AMF0 serialization

ECMA Arrays where tagged as numbers. Fixes the encoding1 trace test.