changed deinterleave coerce "dimension" to integer