Fix io mode testing

Two commits: 1st to demonstrate how broken the current EUnit-related makefile target is (apply this commit, then `make eunit_nif`), 2nd to fix the NIF-style options list parsing that is making NIF-style I/O impossible.