Collection now implement ArrayAccess.
Use json_encode/decode in IdSerializer to support combined primary keys.