Test + fix for large inserts into TreeMap

This was reported here: http://code.google.com/p/functionaljava/issues/detail?id=31
Patch was provided by glip...@gmail.com.
This patch worked properly. 

I added a java test case and maven build for fj core.