Fixes #15. It wasn't as fundamental as it looked.

Thanks @tsion for finding this.
Update _unsafe_eval() tests.
Add tests to make sure I/O-related variables/constants are StringIO instances, not IO instances.