added missing method serializeArray