Support primitives at the top level of serialization