to_array() no longer uses __sleep()