Function tests whether x is a valid rule object, i.e., whether
it is a list and inherits from the rmake.rule S3 class. Instances
of rule represent an atomic building unit, i.e., a command that
must be executed, which optionally depends on some files or other
rules – see rule() for more details.