More hacks to make Maps serialize with Kryo.
Merge pull request #1 from marmbrus/limit

More hacks to make Maps serialize with Kryo.