Use scm_is_pair instead of SCM_CONSP; use scm_is_null instead of