However, you are right.
The piece of code regarding compound values is very complex and I should probably document it while I still have it fresh ...