p2: rename nil to perl-style undef, enable undef api tests