Added type check for setting object and format function overloads.
Added type check for setting object and format function overloads.

borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,benishouga/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,AgentME/DefinitelyTyped,aciccarello/DefinitelyTyped,benishouga/DefinitelyTyped,arusakov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mcrawshaw/DefinitelyTyped,amir-arad/DefinitelyTyped,chrootsu/DefinitelyTyped,abbasmhd/DefinitelyTyped,smrq/DefinitelyTyped,jimthedev/DefinitelyTyped,benliddicott/DefinitelyTyped,aciccarello/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,minodisk/DefinitelyTyped,georgemarshall/DefinitelyTyped,isman-usoh/DefinitelyTyped,QuatroCode/DefinitelyTyped,benishouga/DefinitelyTyped,YousefED/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,ashwinr/DefinitelyTyped,nycdotnet/DefinitelyTyped,nycdotnet/DefinitelyTyped,one-pieces/DefinitelyTyped,AgentME/DefinitelyTyped,QuatroCode/DefinitelyTyped,chrootsu/DefinitelyTyped,mcliment/DefinitelyTyped,alexdresko/DefinitelyTyped,jimthedev/DefinitelyTyped,isman-usoh/DefinitelyTyped,smrq/DefinitelyTyped,ashwinr/DefinitelyTyped,arusakov/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,zuzusik/DefinitelyTyped,jimthedev/DefinitelyTyped,johan-gorter/DefinitelyTyped,AgentME/DefinitelyTyped,alexdresko/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,abbasmhd/DefinitelyTyped,zuzusik/DefinitelyTyped,minodisk/DefinitelyTyped,mcrawshaw/DefinitelyTyped,johan-gorter/DefinitelyTyped,zuzusik/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,aciccarello/DefinitelyTyped,YousefED/DefinitelyTyped,AgentME/DefinitelyTyped