Check object closed on VALUE -> grn_obj conversion

It was checked on deconstructin values from RbGrn*. We should report
an error as soon as possible to detect problem location.

And this changes causes an exception instead of SEGV. An exception is
better rather than SEGV.

GitHub: fixed #9

Reported by KITAITI Makoto. Thanks!!!