documented function M
added arg fill to as.matrix and as.array and made fill arg not replace explict NA's