Fix moveing for the first row

Only abort moveRow if the row is really not found and not if the row idx
just happens to be 0.
Fix reindexing for hidden rows in row mode

Also update hidden data rows when reindexing in row mode. This fix was
previously somehow only done for block mode.
Relax requirements for markup

Don't assume inputs are direct childs of table cells. This makes useing custom
templates much easier.