Assert on duplicate registration. Don't depend on function pointer equality.