Include namespace in auto-requires
Correctly handle versions during fragment optimization

When optimizing fragment files we need to take into account all
versions of provided JPP artifacts.