more explicit code in distanceconstraint
tupledictionary optimizations
minor code fixes
using TupleDictionary in Narrowphase