General bug fixes.
Removed ArrayObject from Registry class as it was uneccesary.
In cases where the dependency is the Loader return static::$instance
instead of $this.