Improved code quality of encoder, decoder and typed object classes.