convert keys and values when using ArrayAccess

The patch fixes the following case:
$judy = new Judy(Judy::INT_TO_INT);
$judy['123456'] = '123456';

In this example both the key and the value are numeric strings and should be converted to integers.
The same goes for INT_TO_MIXED and BITSET arrays.