BUG: accept non arrays in cor and corrcoeff

closes gh-4295
Merge pull request #4391 from juliantaylor/cov-array

BUG: accept non arrays in cor and corrcoeff