Check if the argument is a compound term (a structure).