fixed the insertNaN method to convert the Any array before passing it ba...

...ck to readwrite closes #117