Added close(2) into tiny runtime.
Added the test tool for the behavior of dup(2) and close(2).

dup(2) increases the reference count of the file, and close(2) decreases
that. If Java version closes the dup(2)'ed file with one close(2)
calling, the implementation is wrong. Actually, this is true now.
Added the test case for dup_and_close.