fix for Node.js getSignature implementation

Node.js getSignature was hashing wrong values in certain cases for complex objects