Bugfix NIF testing machinery: catch errors
Bugfix NIF testing machinery: catch errors

Actually detect (and propagate) any errors from the NIF testing, which
is done in a separate vm (doh!).  Add an eunit test to verify the sanity
of this machinery.

mmmries/gpb