Implementing BitmapData.paletteMap function

I've been using this function in Flash, so I thought I'd try my hand at porting it to openfl for use on other targets.

Took a little tinkering to get it to work correctly, and I'm still not sure why I need to reverse the ordering of the ARGB values when getting/setting pixels, but it seems to work on Linux at least.