add some internal access for IntMap; fix c# port compilation; minor fixes