Add general Expand function for domain types