Consolidate functionality under new array function

Remove matrix and vector
Remove failNA and replaceNA