Improved MapTile memory consumption, moved it to package core.