Force keys/values to be either callable or a mapping.