Fixes (passing normalize_metadata to periap, normalize function metadata)