Updated references to "plugin" to "core" as now used with themes as well.
Fixed issue with registering custom post types to themes

Updated ::register() method to type hint using Base rather than Plugin, as could also be a Theme object.