The native is correct. What is not correct is how you initialize your variable(meaning the test is wrong).
new iLevel[33] = 5 will set only index 0 to 5, the others remain 0. That's why your native returns 0. To set the entire array you must use the syntax I provided.