View/Environment->share function modification: Add support to accept an array of variables, or a key and a value.