commit: Handle varalias chains, custom variables in #'user-variable-p.