Syntactic sugar for derive().from().extend()

Allowing derive().from() to use a private function scope as its extend()
method.

Exporting the derive function and some other handy stuff (within the
Dexie namespace)