Improve speed of interleave_data whilst handling object types and multi-dimensional data