More undeprecation of model-elements-base getters
Fix all compiler warnings