Added support for interface types when registering value / safe types