Improved that it may convert also to Hash in Array

Improved that it may convert also to Hash in Array.