Don't inherit settings.base when extending a model

Fix the bug in `ModelClass.extend` where the `base` option used
in the new class was inherited from ModelClass. As a result
the extended model was incorrectly based on ModelClass's parent.

Fix #322.

/to @raymondfeng @ritch please review