Add a helper for casting some common collection types into generic form
Try and see if there is anything to the identityHashCode collision hypothesis. If you see this in your error messages, kindly let us know!