Add missing unit tests for cons module.

Also remove vestigial HackToFixNil decl from cons.h.
Add unit test for env::ExtendAll.