[WIP] remove toArray and newFromArray