Selection: Fix cast to target size_t not hsize_t
Charon: Rename a few variables to not shadow functions