fixed a crash caused by returning NULL pointer from function call
added failed code as a test case
initial implementation of array native object