fix typo in non-vectorized categorical map_to_target function
add tests for categorical percentage mappings