update version to 0.3-git
BUG: allow toarray() to work for empty arrays