If numpy has a problem reshaping data, issue a warning instead of crashing

Addresses #1038