Fixed conversion from AbstractArray. Added conversion to Array.