Convert all uses of Type to sharedptr