Fix conversion to plain array
Update documentation