Add bugfix/test for converting a record datashape to numpy