BUG: fix #3017 Inconsistency in indexing 0-d arrays with Ellipsis.
TST: added test for issue #3017.

Also changed style to please numpy developers.
Merge pull request #3757 from dimasad/issue-3017-fix

BUG: fix #3017 Inconsistency in indexing 0-d arrays with Ellipsis.