Commit fixes consistency problem between constructors of scalar functions and vector functions. Closes issue #169 (closed).