elif t == list:
t2 = type(l)
if t2 == int: print "int array"
elif t2 == float: print "double array"
elif t2 == str or t2 == unicode: print "string array"
elif t2 == tuple: print "vector array"
This can get you quite far with no coding effort involved, but if you want to do it for realz you have to do what was in the link you provided.
p = om.MPlug()
sl = om.MSelectionList()
This will return the numeric value but you can compare it like how is showed in the link you provided.
Thanks alot Peter, I believe I can build the rest from here :)