IsInitialized property and IEnumerable<Type> rootTypes

Please merge these changes which should make it more comfortable to use the Serializer class.