Ensure arrays are doubles and C-contiguous before being memory-mapped
minor bug fixes