allow Rcpp to coerce numeric matrix to logical (0 -> FALSE, != 0 -> TRUE)

- avoids problems with 0, 1 row matrices used with apply