Improved get_type() check to test if array is associate of not.