* src/lens.c (typecheck_prim): new function
* src/lens.c (typecheck_prim): new function

Factor typechecking primitive lenses into a separate function, and only
call that if typechecking is actually turned on.

mlichvar/augeas,hercules-team/augeas,kunkku/augeas,mlichvar/augeas,mlichvar/augeas,hercules-team/augeas,ptoscano/augeas,kunkku/augeas,ptoscano/augeas,ptoscano/augeas,lutter/augeas,lutter/augeas,lutter/augeas,kunkku/augeas