Patch 1217a

I guess start index of output array is not correct (i.e., the results of C/C++ and ruby are not same).

Would you please read this report when you have a time.
https://gist.github.com/mephistobooks/8027013