Stack length should be long
STACK_LEVEL_MAX is set to 655300 in some cases. The C specification only guarantees that an unsigned int can hold up to 65535. Therefore, ruby_stack_length should return a long and STACK_LEVEL_MAX, if a variable, should be a long. This issue was found in ruby_1_8_6 branch.