vec_proxy_logical() converts an object to it's logical representation
(if available). vec_restore_logical() restores a logical proxy back to
the original type. The default methods allow any object built on a logical,
integer, or numeric, to be coerced to logical, and leave the result as is.