Update Loader.php

$type was missing inside the import() resolver call.