Section 6. In construing rules, by-laws and regulations concerning the use and operation of vehicles on ways, street railway cars or other cars moving upon rails shall not be considered to be vehicles within the provisions of the five preceding sections, unless it is expressly so provided.