Implement the dst type and shape resolution functions