[WIP] remove check_arrays stuff and old input validation

Follow-up on #3443, removing all the old stuff.
ndim 2 array => 2 dimensional array (ndim = 2)