Related to #869; but understanding register() calls seems much more easier than doing structural matching of class hierarchies.