621c519cc5
Rather than relying on the encoder's type identifier, additionally allow the ability to get defaults via an encoder object.