AfterEffects is working on RGB colours while almost all video encoders work on YUV(A) colours. A lossy conversion is necessary in this case. There is also a hack included that transforms 16bit colours to 15bit and throws the most significant bit away. It's always lossy unfortunately.
If someone has an idea on how to improve this please let me know. (maybe use YUV in AE?)