Are there any places where should not use compressed public keys?
There is no one advantage to use uncompressed key vs compressed.
So, there is no one place in code where uncompressed key is allowed and compressed key is disallowed