added "select_entity" functionality and extended the nodesmap/tilesmap api

also arranged the const/unconst functions in the maps.