Move Ruslan Z's bug into the test suite
Add test of ref to undef as NAIF token value

Regression test of bug found by Ruslan Zakirov.
Work on forgiving tokens: t+