add type for Lazy.replicate