Fix vcs repo constructor, fixes #2444
Fix pear ctor, refs #2444