Stricter type checking for ndarray conversion

Fixes #276
This is cosmetic right?