Support repr registration at runtime