Core: Added low-level function mapping_free_keypair(). This function is needed to perform some low-level modifications of mappings.