Closes issue #3190: Move map internal classes to map impl package

Closes #3190