updated clone() for detecting objects without constructor property.

changed "Object" detection that objects without .constructor property do not throw an error by using the typeof command.