Move locale method.
Implement array sessions on certain callbacks.
Merge branch '4.1'