[#902] Remove usage of generics for output of Encoder/Decoder to make th...

...em more flexible again