Make the mapping structure protected.

Access to the map and index map is required to extend the class, making
the properties protected will still restrict the access to them but will
allow extending classes to use them.