Make constructor function optional.

If no constructor is passed in, generate a default one that
applies the parent constructor. Allows usage like:

    var Foo = inherits(Bar, { ... })