Tree serialization methods should take a handle argument to serialize directly to a handle.