WICKET-5307 Export resources' version cache attribute as request cycle metadata

Fix the parsing of the version in FilenameWithVersionResourceCachingStrategy.
Add unit tests.