feature: add method arrayKeys with an additional support for ArrayObject

`substr($dest, -1)` is the same as `substr($dest, -1, 1)`