BUG: accept non arrays in cor and corrcoeff

closes gh-4295