Fixed Entity::set visibility (possible BC break) and allowed to use protected/private native getters/setters