MultiRegistry now looks at class hierarchy of values

This allows us to have two implementations of a serializer and pick the
more specific one.

Change-Id: Icccfc6da9034a1f23faefd2c1a535c30a309642c
Signed-off-by: Robert Varga <rovarga@cisco.com>