Change AssetBundle.register() return type to static

Enable IDE typehints for custom AssetBundle properties (related to #2572).
Merge pull request #2574 from andy5/patch-1

Change AssetBundle.register() return type to static