(CFACT-44) Update for code review feedback.

* Add some comments regarding MRI documentation.
* Add some comments regarding VALUE and the use of "volatile".
* Remove unused rb_undef_alloc_func import.
* Use ranged for loop instead of iterator for loop in chunk.cc.