Change AssetBundle.register() return type to static

Enable IDE typehints for custom AssetBundle properties (related to #2572).