Work on patterns and casts for Tinkers.

Almost done.