Fix routing key encoding for compound primary keys

- make component size big-endian
- include component string size in format string