class library: insertParent method for IdentityDictionary
class library: quick fix for SerialPort crash. Fixes #862.