Resizable array seems to be working, but more tests needed