predicates to differentiate lists and atoms; more tests for nil