Changed incorrect types in static assertions guarding against binding temporaries to optional refs