BUG: ma.compressed() function returns masked array

When a masked array with nomask was passed to ma.compressed()
function, the result was the original masked array instead of
an ndarray.

Closes gh-4026.
Merge pull request #4039 from abalkin/issue-4026

BUG: ma.compressed() function returns masked array