Support stubbing types other then object and function