THREE.extend improvements: adopt safe {}.hasOwnProperty method source.  Optimize Object.keys() based on @paulmillr suggestion.