proper const reference usage, refs #226.