Allow depcache:memo function to return a #memo record

This record can contain additional key dependencies or a different
maxage.