Pass the isDefinitelyObject argument to wrapObjectTemplate...

... and fix nearby whitespace (fixes #1196).