Refactored the YamlFileLoader to remove duplication

The YamlFileLoader now uses the ArrayLoader by composition rather than inheritance, allowing to extend from the AbstractFileLoader, which is way more logical.