Fixed const methods in core/dir.?pp
Unit: setters/getters