Update GraphDatabase.js

Added test to the ._clone() method to check if the key is a function, in reference to https://github.com/jmfarp2011/GraphDBjs/issues/1