provider_priority was actually a string all along! make it an int as type hinting suggests, and add some tests for apkindex parsing.
cc: @Newbyte