[4.2] Support : allows array_only to handle dotted keys

Also ensure that an empty array is returned when `$array` or `$keys` arguments are empty
Could this be moved inside the next function?
```php
    $dotted = array_intersect_key(static::dot($array), array_flip($keys));
```