Change name of RegisterLoopForStructType to RegisterLoopByDescr
Add test for RegisterLoopByDescr and custom dtypes