Test case for issue 58.

--HG--
branch : release-1.0
Changed axis mapping logic slightly to remove some poorly handled cases.

Cherry-picked from development (default) branch, to resolve issue 41.

--HG--
branch : release-1.0
Add support for numpy-type numbers in ufunc.

Fixes issue 58.

--HG--
branch : release-1.0