Improve versioning support for namedbundleresource resources.

This pull request resolves issue #179.