Add wrapRoot option for serialization