Configuration wrapped with an interface. Reading inherited class objects via JSON corrupt