fix layer tree translation support
fix some warnings
sip: remove enum constants