Allow NA values in matrices

Wanting to display some matrices with entries that are NA, some diverging_palette (and other) functions were unable to cope.
Now, the offending calls (to things like min(), max(), range()) ignore the NAs.
I may possibly have missed some functions, but it now works for my example.