Add a serialization format to actor selections. Fixes #3748