Array handling for unmarshal

hopefully fixes #154