Inline singleton unmarshalling, and throw an error if multiple copies show up.