detect_support_type function

Detect the type of support of some random variables