Refactor insert/materialize node schemas.

lexical_cast, eh? neat. Paul learned something today.