Define ly_scm_hash_fold() wrapper
ly_scm_hash_fold()
wraps scm_internal_hash_fold()
to reduce the use of
reinterpret_cast
.
The definitions of the functions to call during the fold have been moved
closer to the calls to ly_scm_hash_fold()
that use them.