Add generic types for results and collections
Add generic types for results and collections

now we can simply do something like:

```
const model = DB.objects<IUserContext>("UserContext").sorted("token", true);
```

And expect the model to be of the union of types`IUserContext & Realm.Object`
one-pieces/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,isman-usoh/DefinitelyTyped,benishouga/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,dsebastien/DefinitelyTyped,amir-arad/DefinitelyTyped,progre/DefinitelyTyped,chrootsu/DefinitelyTyped,ashwinr/DefinitelyTyped,chrootsu/DefinitelyTyped,smrq/DefinitelyTyped,markogresak/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,ashwinr/DefinitelyTyped,AgentME/DefinitelyTyped,nycdotnet/DefinitelyTyped,AgentME/DefinitelyTyped,aciccarello/DefinitelyTyped,rolandzwaga/DefinitelyTyped,benishouga/DefinitelyTyped,YousefED/DefinitelyTyped,georgemarshall/DefinitelyTyped,progre/DefinitelyTyped,abbasmhd/DefinitelyTyped,isman-usoh/DefinitelyTyped,AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,jimthedev/DefinitelyTyped,abbasmhd/DefinitelyTyped,minodisk/DefinitelyTyped,arusakov/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,alexdresko/DefinitelyTyped,johan-gorter/DefinitelyTyped,rolandzwaga/DefinitelyTyped,magny/DefinitelyTyped,jimthedev/DefinitelyTyped,borisyankov/DefinitelyTyped,mcrawshaw/DefinitelyTyped,jimthedev/DefinitelyTyped,alexdresko/DefinitelyTyped,benishouga/DefinitelyTyped,aciccarello/DefinitelyTyped,arusakov/DefinitelyTyped,aciccarello/DefinitelyTyped,YousefED/DefinitelyTyped,zuzusik/DefinitelyTyped,nycdotnet/DefinitelyTyped,minodisk/DefinitelyTyped,zuzusik/DefinitelyTyped,QuatroCode/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,smrq/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,johan-gorter/DefinitelyTyped,magny/DefinitelyTyped,benliddicott/DefinitelyTyped,borisyankov/DefinitelyTyped,QuatroCode/DefinitelyTyped,mcrawshaw/DefinitelyTyped,dsebastien/DefinitelyTyped