Refactor submap::trp to use public getters and setters instead. [CR]

I'm honestly not sure whether this is worthwhile. The getters/setters might be good to have, but don't know whether the has_traps() flag is worth it.