Revert "Update Array#digits; do not cast to string"

This reverts commit e9aaeb9bbfee63e242f37740b05139cc145df6b7.
This commit broke the solution to problem #35 (and possibly others).