Change implementation of `new Loader` to match the spec a little better. The way we actually polyfill the Realm API needs more attention at some point, but it can wait. With this change, it is possible to construct a Loader (ahem).